cmake_minimum_required(VERSION 3.15)

project ( hello_world_prj )

function ( fun list_in )
	message ( STATUS "in fun : list_in = ${list_in}" )
endfunction()

set( mylist "" )
list( APPEND mylist a )
list( APPEND mylist b )
list( APPEND mylist c )

fun( mylist )
fun( ${mylist} )

function ( myfun list_in )
	message ( STATUS "in myfun : ARGC = ${ARGC}" )
	message ( STATUS "in myfun : ARGV = ${ARGV}" )
endfunction()

myfun( ${mylist} )